import service from "@/utils/fetch";
const post = {
  //查询商户桌位分页
  tenantTable(params) {
    return service({
      method: "get",
      params,
      url: "/api/tenantTable/",
    });
  },

  //新增商户桌位
  addTenantTable(params) {
    return service({
      method: "post",
      data: params,
      url: "/api/tenantTable/",
    });
  },

  //编辑商户桌位
  editTenantTable(params) {
    return service({
      method: "put",
      data: params,
      url: "/api/tenantTable/",
    });
  },

  //删除商户桌位
  deleteTenantTable(ids) {
    return service({
      method: "delete",
      data: ids,
      url: "/api/tenantTable/",
    });
  },
};

export default post;
